package aop.annotation;

import org.springframework.stereotype.Component;

/**
 * @date 2020/5/3 12:43
 */
@Component("c")
public class Car
		implements Vehicle
{

//	@Autowired
//	private Bike bike;

	public String drive() {
		System.out.println("2 drive car");
//		if(true){
//			throw new RuntimeException("throw exception");
//		}
		return "drive car invoked";
	}
}
